package ru.silviasaint.fridge.server.servlet;

import ru.silviasaint.fridge.server.handler.AddProductActionHandler;
import ru.silviasaint.fridge.server.handler.SampleActionHandler;
import ru.silviasaint.fridge.server.handler.SearchActionHandler;
import ru.silviasaint.fridge.server.paginator.impl.ProductActionHandler;
import ru.silviasaint.fridge.shared.SampleAction;
import ru.silviasaint.fridge.shared.ingredients.AddProductAction;
import ru.silviasaint.fridge.shared.ingredients.SearchAction;
import ru.silviasaint.fridge.shared.paginator.PaginatorAction;

import com.gwtplatform.dispatch.server.guice.HandlerModule;

/**
 * Created by Dmitry.
 * User: jetblack20
 * Date: 4/5/12
 * Time: 11:18 PM
 */
public class AppDispatchModule extends HandlerModule{

    @Override
    protected void configureHandlers() {
        bindHandler(SampleAction.class, SampleActionHandler.class);
        bindHandler(PaginatorAction.class, ProductActionHandler.class);
        bindHandler(SearchAction.class, SearchActionHandler.class);
        bindHandler(AddProductAction.class, AddProductActionHandler.class);
    }
}
